/*
 * Copyright (c) 2001-2023 cnstrong.cn Corporation Limited. All rights reserved.
 * This software is the confidential and proprietary information of cnstrong.cn Company.
 * ("Confidential Information").
 * You shall not disclose such Confidential Information and shall use it only
 * in accordance with the terms of the license agreement you entered into with cnstrong.cn.
 */
package com.tree.config.utils;

import com.tree.config.base.WeTreeConstants;

/**
 * 缓存key工具类
 *
 * @author Braveheart
 * @version V1.0
 * @since 2023-12-29
 */
public class DictCacheKeyUtils {

    /**
     * 获取配置缓存key
     */
    public static String getCacheKey(String projectCode,
        String parentCfgCode,
        String currCfgCode,
        Object bizId,
        Integer cfgEnv) {

        return WeTreeConstants.CODIS_VALUE_NAMESPACE + cfgEnv
            + ":" + projectCode
            + ":" + parentCfgCode
            + ":" + currCfgCode
            + ":" + bizId;
    }
}
